export default function myNew (fn) {
    if (typeof fn !== 'object' && typeof fn !== 'function') {
        throw new TypeError('param must be a Obj')
    }
    let obj = {}
    obj.__proto__ = fn.prototype
    let res = fn.apply(obj, [...arguments].slice(1))
    return typeof res === 'object' ? res : obj
}